package simulation.CreatorPackage;

import java.util.Scanner;

import simulation.Factory;
import simulation.Gravity;
import simulation.Model;

public class gravityCreator extends Creator {
	private final Factory myFactory;

	public gravityCreator(Factory factory) {
		myFactory=factory;
	}

	@Override
	public void createObjectInModel(Scanner line, Model model) {
		double angle=line.nextDouble();
    	double magnitude=line.nextDouble();
        model.add(new Gravity(angle,magnitude));
		// TODO Auto-generated method stub

	}

}
